package com.google.code.mergeinformer.util;

/**
 * @author Dmitry Golubev
 */
public abstract class Measured {

    public final long execute() {
        final long start = System.currentTimeMillis();
        measuredBlock();
        final long end = System.currentTimeMillis();
        return end - start;
    }

    protected abstract void measuredBlock();
}
